package com.lsx.service.impl;

import com.lsx.dao.EnclosureDao;
import com.lsx.pojo.Detailed;
import com.lsx.pojo.Enclosure;
import com.lsx.service.EnclosureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by pc on 2017/11/21.
 */
@Service("EnclosureService")
public class EnclosureServiceImpl implements EnclosureService {
    @Autowired
    private EnclosureDao enclosureDao;

    public int addelure(Enclosure enclosure) {
        return enclosureDao.addelure(enclosure);
    }

    public List<Enclosure> getByDid(int did) {
        return enclosureDao.getByDid(did);
    }

    public int upDetlEid(Detailed detailed) {
        return enclosureDao.upDetlEid(detailed);
    }
}
